package android.app.gfestival.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class DateTimeUtil {
	private static final String MONDAY = "Monday";
	public static String dateToString(Date date,String format){
//		String[] lang = Locale.getISOLanguages();
//		String[] country = Locale.getISOCountries();
//		for(int i = 0; i < lang.length; i++){//doi_IS
//			System.out.println(country[i]+ "_" + lang[i]);
//		}
		SimpleDateFormat simple= new SimpleDateFormat(format, new Locale("en"));
		String convert = simple.format(date); 
		
		return convert;
	}
	
	public static Date stringToDate(String date){
		return new Date(date);
	}
	
	public static String convertDate(String from,String to){
		return dateToString(stringToDate(from), to);
	}
}
